String Combination

Conglomeration

This utility merges its parameters into a single string.

// Conglomerate Strings and other Objects
function glom()
{
  // initialize an empty string
  var tmp = ""
  
  // add each argument to the growing string
  for (var i = 0; i < glom.arguments.length; i++) 
  	tmp += glom.arguments[i]
  	
  // return it	
  return tmp
}

Copyright ©1998 by Charles River Media, All Rights Reserved